From 9e3a16029ea2b70c65127f6e4988aa2e440ac3d0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 30 Apr 2006 04:53:40 +0000 Subject: [PATCH] Fix the definition of the ::size-changed signal, and improve its 2006-04-30 Matthias Clasen * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Fix the definition of the ::size-changed signal, and improve its documentation. (#340112, Christian Persch) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ gtk/gtkstatusicon.c | 11 +++++++---- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 764a328d25..2b1f180615 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-04-30 Matthias Clasen + + * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Fix the definition + of the ::size-changed signal, and improve its documentation. + (#340112, Christian Persch) + 2006-04-29 Behdad Esfahbod * gtk/gtkwidget.c (gtk_widget_create_pango_layout) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 764a328d25..2b1f180615 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2006-04-30 Matthias Clasen + + * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Fix the definition + of the ::size-changed signal, and improve its documentation. + (#340112, Christian Persch) + 2006-04-29 Behdad Esfahbod * gtk/gtkwidget.c (gtk_widget_create_pango_layout) diff --git a/gtk/gtkstatusicon.c b/gtk/gtkstatusicon.c index 9a37f4fd9b..4aa1c9a30c 100755 --- a/gtk/gtkstatusicon.c +++ b/gtk/gtkstatusicon.c @@ -266,17 +266,20 @@ gtk_status_icon_class_init (GtkStatusIconClass *class) * Gets emitted when the size available for the image * changes, e.g. because the notification area got resized. * + * Return value: %TRUE if the icon was updated for the new + * size. Otherwise, GTK+ will scale the icon as necessary. + * * Since: 2.10 */ status_icon_signals [SIZE_CHANGED_SIGNAL] = g_signal_new (I_("size-changed"), - G_TYPE_FROM_CLASS (gobject_class), - G_SIGNAL_RUN_FIRST, + G_TYPE_FROM_CLASS (object_class), + G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkStatusIconClass, size_changed), - NULL, + g_signal_accumulator_true_handled, NULL, _gtk_marshal_BOOLEAN__INT, - G_TYPE_NONE, + G_TYPE_BOOLEAN, 1, G_TYPE_INT); -- 2.30.2